package com.shelpe.services.scheduler.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.shelpe.services.scheduler.po.Campaigns;

public interface CampaignsRepository extends PagingAndSortingRepository<Campaigns, Long>{

	List<Campaigns> findByUserId(Long userId);
	
	public Page<Campaigns> findByUserId(Long userId, Pageable pager);
}
